#!/c/Ruby187/bin/ruby

ARGV.each do |arg|


    cfile = File.new(arg + '.c', 'w')
    cfile.puts '#include "common.h"'
    cfile.puts "\n\n"
    cfile.puts "void " + arg + "_init(void)\n{\n\n}"
    cfile.close

    hfile = File.new(arg + '.h', 'w')
    hfile.puts '#ifndef _' + arg.upcase + '_H'
    hfile.puts '#define _' + arg.upcase + '_H'
    hfile.puts "\n\n"
    hfile.puts "void " + arg + "_init(void);\n"
    hfile.puts '#endif /* _' + arg.upcase + '_H */'
    hfile.close
end
